<template>
  <div>
    <van-grid :column-num="4">
      <van-grid-item icon="apps-o" text="分类"  />
      <van-grid-item icon="chart-trending-o" text="排行榜"  />
      <van-grid-item icon="flower-o" text="免费"  />
      <van-grid-item icon="cluster-o" text="大神"  />
    </van-grid>
    <div class="item">
      <h5 class="title">
        <div>推荐</div>
        <van-icon name="arrow" />
      </h5>
      <ul class="content">
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
      </ul>
    </div>
    <div class="item">
      <h5 class="title">
        <div>文档资料</div>
        <van-icon name="arrow" />
      </h5>
      <ul class="content">
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
      </ul>
    </div>
    <div class="item">
      <h5 class="title">
        <div>教育相关</div>
        <van-icon name="arrow" />
      </h5>
      <ul class="content">
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
      </ul>
    </div>
    <div class="item">
      <h5 class="title">
        <div>小说</div>
        <van-icon name="arrow" />
      </h5>
      <ul class="content">
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
        <li class="item-one">
          <img src="" alt="" />
          <p></p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: "books",
};
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 180px;
  text-align: center;
  background-color: #39a9ed;
}
.item {
  padding: 16px;
  .title {
    display: flex;
    align-items: center;
  }
  .content {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .item-one {
      width: 2.2rem;
      height: 3.8rem;
      background: red;
      margin-bottom: 5px;
      img {
        width: 100%;
        height: 3.5rem;
      }
      p {
        width: 100%;
        height: 0.3rem;
      }
    }
  }
}
</style>